package com.yc.library.mapper;

import com.yc.library.bean.Book;
import org.apache.ibatis.annotations.Param;


import java.sql.Date;
import java.util.List;

public interface BookMapper {

    public List<Book> selectAll();

    public List<Book> selectByNameOrPressorOrDate(
            @Param("name") String name,
            @Param("press") String press,
            @Param("date") String date
         );

    public Book selectById(String id);

//    String id, String name, String press,
//    String date, String author, String count, String image
     void save(
            @Param("id") String id,
            @Param("name") String name,
            @Param("press") String press,
            @Param("date") String date,
            @Param("author") String author,
            @Param("count") String count,
            @Param("image") String image
    );
     void update(Book book);
}
